package com.runjian.rundo.iot.agent.iec104.config;

import java.util.List;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import com.runjian.rundo.iot.agent.iec104.module.Iec104Device;
import com.runjian.rundo.iot.agent.iec104.module.Iec104Protocol;

import lombok.Getter;
import lombok.Setter;

/**
 * tcp透传客户端网络组件配置
 *
 * @author CaoQingHua
 */
@Getter
@Setter
@ConfigurationProperties(prefix = "network.ice104")
@Configuration
public class Iec104Properties {

    /**
     * 总召间隔，默认为5分钟一次
     */
    private long summoningInterval = 300;

    /**
     * 时间同步间隔，默认为5分钟一次
     */
    private long timeSyncInterval = 300;

    /**
     * 设备集合
     */
    List<Iec104Device> devices;

    /**
     * 协议集合
     */
    List<Iec104Protocol> protocols;

}
